package org.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author 海晨忆
 * @Des
 * @Date 2025/8/1 13:23
 */
@Controller
public class UserController {

    @RequestMapping(value = "/")
    public @ResponseBody String index() {
        return "Welcome to Spring Security";
    }

    @RequestMapping(value = "/toLogin")
    public String toLogin() {
        return "login";
    }
}
